<template>
    <div>
        路由展示列表,没有注册到组件或路径上
        <div>跳转带来的参数:{{name}}</div>
        <button @click="goBack">返回</button>

    </div>
</template>

<script>
    export default {
        name: "routerTest2",
        data() {
            return {name: null}
        },
        created() {
            let {name=''} = this.$route.query;
            this.name = name;
        },
        methods: {
            /**
             * 返回
             */
            goBack() {
                this.$router.go(-1);
            }
        }
    }
</script>

<style scoped>

</style>
